package collection1;

import java.util.Arrays;
import java.util.List;

public class ArrayToList2 {
    public static void main(String[] args) {
        Integer[] array2={10,15,23,55,14,16};
        System.out.println("array2:"+ Arrays.toString(array2));
        List<Integer> list2= Arrays.asList(array2);
        System.out.println("list2:"+list2);
        array2[1]=25;
        System.out.println("array2:"+ Arrays.toString(array2));
        System.out.println("list2:"+list2);
        list2.set(0,0);
        System.out.println("array2:"+ Arrays.toString(array2));
        System.out.println("list2:"+list2);

    }
}
